export function toFixed(num,how){
  let result
  if (num) {
    let numStr = num.toString()
    let index = numStr.indexOf('.')
    if (index>-1){
      result = numStr.slice(0, index + how+1)
    } else{
      result = Number(num).toFixed(2)
    }
  }else{
    result = 0.00
  }
  return result
}
